package com.vpclub.bean;

/**
 * @author : leimingchao
 * @version V1.0
 * @Project: jdbc
 * @Package com.vpclub.bean
 * @Description: TODO
 * @date Date : 2021年05月29日 16:40
 */
public class Student {
    private Integer flowId;
    private Integer type;
    private String IDCard;
    private String examCard;
    private String name;
    private String location;
    private Integer grade;

    public Student() {
    }

    public Student(Integer flowId, Integer type, String IDCard, String examCard, String name, String location, Integer grade) {
        this.flowId = flowId;
        this.type = type;
        this.IDCard = IDCard;
        this.examCard = examCard;
        this.name = name;
        this.location = location;
        this.grade = grade;
    }

    public Integer getFlowId() {
        return flowId;
    }

    public void setFlowId(Integer flowId) {
        this.flowId = flowId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIDCard() {
        return IDCard;
    }

    public void setIDCard(String IDCard) {
        this.IDCard = IDCard;
    }

    public String getExamCard() {
        return examCard;
    }

    public void setExamCard(String examCard) {
        this.examCard = examCard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        System.out.println("================查询结果===============");
        return this.info();
    }

    private String info() {
        return "流水号：" + this.flowId + "\n四级/六级：" + this.type + "\n身份证号：" + this.IDCard + "\n准考证号：" + this.examCard + "\n学生姓名：" + this.name
                + "\n区域：" + this.location + "\n成绩：" + this.grade;
    }
}
